-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a sampling method to HIRM. #154
Conversation
Fixes #125 |
@@ -65,6 +65,11 @@ class HIRM { | |||
|
|||
double logp_score() const; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add brief descriptions of these methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
||
virtual void incorporate_to_cluster(const T_items& items, const ValueType& value) = 0; | ||
virtual void incorporate_sample(std::mt19937* prng, const T_items& items) = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a description of this new method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
7497f6a
to
b018f27
Compare
I added
incorporate_sample
toRelation
instead of taking care of everything in HIRM in anticipation of it being useful for our eventual HIRM/PClean hybrid that will enforce a unique-valued index domain in samples as well.